{extend name="base"/}
{block name="css"}
<style>
        .layui-body {
            position: absolute;
            left: 120px;
            right: 0;
            top: 20px;
            bottom: 0;
            z-index: 998;
            width: auto;
            overflow: hidden;
            overflow-y: auto;
            box-sizing: border-box;
        }
    </style>
{/block}
{block name="content"}
{if $info}

<div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-lg12">
                <fieldset class="layui-elem-field">
                    <legend>商品详情</legend>
                    <div class="layui-field-box">
                        <form class="layui-form" id="articleForm" enctype="multipart/form-data">
                            <div class="layui-form-item">
                                    <label class="layui-form-label">订单号</label>
                                    <div class="layui-input-block" >
                                        <input type="text" class="layui-input" value="{$info.order_number}" readonly="readonly">
                                    </div>
                            </div>
                            <div class="layui-form-item">
                                    <label class="layui-form-label">买家ID</label>
                                    <div class="layui-input-block" >
                                        <input type="text" class="layui-input" placeholder="请输入买家ID" value="{$info.userid}" readonly="readonly">
                                    </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">买家昵称</label>
                                <div class="layui-input-block" >
                                    <input type="text" class="layui-input" placeholder="请输入买家ID" value="{$info.nickname}" readonly="readonly">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                    <label class="layui-form-label">商品名称</label>
                                    <div class="layui-input-block" >
                                        <input type="text" class="layui-input" placeholder="请输入商品名称" value="{$info.name}" readonly="readonly">
                                    </div>
                            </div>  
                            <div class="layui-form-item">
                                    <label class="layui-form-label">总价</label>
                                    <div class="layui-input-block" >
                                            <input type="text" class="layui-input" placeholder="请输入商品总价" value="{$info.tprice}" readonly="readonly">
                                    </div>
                            </div>  
                           <!-- <div class="layui-form-item">
                                    <label class="layui-form-label">商品名称</label>
                                    <div class="layui-input-block" >
                                        <input type="text" class="layui-input" value="{$info.name}" readonly="readonly">
                                    </div>
                            </div>-->
                            
                            <div class="layui-form-item">
                                    <label class="layui-form-label">状态</label>
                                    <div class="layui-input-block" >
                                        <input type="text"  class="layui-input" value="{$info.status1}" readonly="readonly">
                                    </div>
                            </div>
                            {if condition= "$info.status eq '2' or $info.status eq '3'"}
                            <div class="layui-form-item" id="reason_textarea" >
                                <label class="layui-form-label">原因</label>
                                <div class="layui-input-block" >
                                    <textarea name="reason" placeholder="请输入原因" class="layui-textarea">{$info.reason}</textarea>
                                </div>
                            </div>
                            {else/}
                            <div class="layui-form-item" id="reason_textarea" style="display: none;">
                                <label class="layui-form-label">原因</label>
                                <div class="layui-input-block" >
                                    <textarea name="reason" placeholder="请输入原因" class="layui-textarea"></textarea>
                                </div>
                            </div>
                            {/if}
                            {if condition= "$info.status eq '0'"}
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input type="hidden" name="order_id" value="{$info.order_id}">
                                    <input type="button"  lay-submit="" lay-filter="addAbout" value="{:lang('取消订单')}" class="" id="submit" style="width: 90px;height: 38px;text-align: center;line-height: 38px;border: none; background: #009688; color: #fff;border-radius: 2px;">
                                </div>
                            </div>
                            {/if}
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input type="hidden" name="order_id" value="{$info.order_id}">
                                    <input type="button"  lay-submit="" lay-filter="addAbout" value="{:lang('确定')}" class="" id="submit1" style="width: 90px;height: 38px;text-align: center;line-height: 38px;border: none; background: #009688; color: #fff;border-radius: 2px; display: none;">
                                </div>
                            </div>
                        </form>
                    </div>
                </fieldset>
            </div>
        </div>
    </div>

{/if}
{/block}
{block name="js"}
<script type="text/javascript" src="__ADMIN__/js/goods_orderList.js"></script>
{/block}